import java.util.Scanner;
public class Email {
	public static void main(String[] args) {
		int i=0;
		Scanner scan=new Scanner(System.in);
		System.out.println("Please input Email address that you want to vverify:");
		String str=scan.next();
		i=judge(str);
		if(i==0)
			System.out.println("This Email address is not correct!");
		else
			System.out.println("This Email address is correct!");
	}
	public static int judge(String str){
		if(str.indexOf("@")==-1||str.indexOf(".")==-1)
			return 0;
		if(str.indexOf("@")>str.indexOf("."))
			return 0;
		if(str.startsWith("@"))
			return 0;
		if(str.endsWith("com")||str.endsWith("cn")||str.endsWith("net")||str.endsWith("gov")||str.endsWith("edu")||str.endsWith("org")){
			return 1;
		}else{
			return 0;
		}
	}
}